<template>
  <div id="basicLayout">
    <a-layout style="min-height: 100vh">
      <a-layout-header class="header">
        <GlobalHeard />
      </a-layout-header>

      <a-layout>
        <GlobalSider class="sider" />
        <a-layout-content class="content">
          <router-view />
        </a-layout-content>
      </a-layout>

      <a-layout-footer class="footer">
        <div class="footer-simple">
          <span>🖐 手势识别系统</span>
          <span>基于深度学习</span>
          <span>© 2025</span>
        </div>
      </a-layout-footer>
    </a-layout>
  </div>
</template>

<script setup lang="ts">
import GlobalHeard from '@/components/GlobalHeard.vue'
import GlobalSider from '@/components/GlobalSider.vue'
</script>

<script setup lang="ts"></script>

<style scoped>
#basicLayout .header {
  padding-inline: 20px;
  color: unset;
  background: white;
  margin-bottom: 1px;
}

#basicLayout .sider {
  background: #fff;
  padding-top: 20px;
  border-right: 0.5px solid #eee;
}

#basicLayout :deep(.ant-menu-root) {
  border-bottom: none !important;
  border-inline-end: none !important;
}

.footer {
  background: #f9f9f9;
  border-top: 1px solid #e0e0e0;
  padding: 16px 20px;
  font-size: 14px;
  color: #666;
}

.footer-simple {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  text-align: center;
  line-height: 1.6;
}

.footer-simple span {
  white-space: nowrap;
}

#basicLayout .content {
  background: linear-gradient(to right, #fefefe, #fff);
  margin-bottom: 28px;
  padding: 28px;
}
</style>
